const COMMON: {
    [s: string]: {
        [s: string]: number;
    };
} = {
    cmdStatus: {
        SUCCESS: 0,
        FAILURE: 1,
        INVALID_PARAM: 2,
        MEM_ERROR: 16,
        BUFFER_FULL: 17,
        UNSUPPORTED_MODE: 18,
        MAC_MEM_ERROR: 19,
        MAC_UNSUPPORTED_NOT_SPOORT: 24,
        MAC_BAD_STATE: 25,
        MAC_NO_RESOURCES: 26,
        MAC_ACK_PENDING: 27,
        MAC_NO_TIME: 28,
        MAC_TX_ABORTED: 29,
        SAPI_IN_PROGRESS: 32,
        SAPI_TIMEOUT: 33,
        SAPI_INIT: 34,
        NOT_AUTHORIZED: 126,
        MALFORMED_CMD: 128,
        UNSUP_CLUSTER_CMD: 129,
        OTA_ABORT: 149,
        OTA_IMAGE_INVALID: 150,
        OTA_WAIT_FOR_DATA: 151,
        OTA_NO_IMAGE_AVAILABLE: 152,
        OTA_REQUIRE_MORE_IMAGE: 153,
        APS_FAIL: 177,
        APS_TABLE_FULL: 178,
        APS_ILLEGAL_REQUEST: 179,
        APS_INVALID_BINDING: 180,
        APS_UNSUPPORTED_ATTRIB: 181,
        APS_NOT_SUPPORTED: 182,
        APS_NO_ACK: 183,
        APS_DUPLICATE_ENTRY: 184,
        APS_NO_BOUND_DEVICE: 185,
        APS_NOT_ALLOWED: 186,
        APS_NOT_AUTHENTICATED: 187,
        SEC_NO_KEY: 161,
        SEC_OLD_FRM_COUNT: 162,
        SEC_MAX_FRM_COUNT: 163,
        SEC_CCM_FAIL: 164,
        NWK_INVALID_PARAM: 193,
        NWK_INVALID_REQUEST: 194,
        NWK_NOT_PERMITTED: 195,
        NWK_STARTUP_FAILURE: 196,
        NWK_ALREADY_PRESENT: 197,
        NWK_SYNC_FAILURE: 198,
        NWK_TABLE_FULL: 199,
        NWK_UNKNOWN_DEVICE: 200,
        NWK_UNSUPPORTED_ATTRIBUTE: 201,
        NWK_NO_NETWORKS: 202,
        NWK_LEAVE_UNCONFIRMED: 203,
        NWK_NO_ACK: 204,
        NWK_NO_ROUTE: 205,
        MAC_BEACON_LOSS: 224,
        MAC_CHANNEL_ACCESS_FAILURE: 225,
        MAC_DENIED: 226,
        MAC_DISABLE_TRX_FAILURE: 227,
        MAC_FAILED_SECURITY_CHECK: 228,
        MAC_FRAME_TOO_LONG: 229,
        MAC_INVALID_GTS: 230,
        MAC_INVALID_HANDLE: 231,
        MAC_INVALID_PARAMETER: 232,
        MAC_NO_ACK: 233,
        MAC_NO_BEACON: 234,
        MAC_NO_DATA: 235,
        MAC_NO_SHORT_ADDR: 236,
        MAC_OUT_OF_CAP: 237,
        MAC_PANID_CONFLICT: 238,
        MAC_REALIGNMENT: 239,
        MAC_TRANSACTION_EXPIRED: 240,
        MAC_TRANSACTION_OVERFLOW: 241,
        MAC_TX_ACTIVE: 242,
        MAC_UNAVAILABLE_KEY: 243,
        MAC_UNSUPPORTED_ATTRIBUTE: 244,
        MAC_UNSUPPORTED: 245,
        MAC_ON_TIME_TOO_LING: 246,
        MAC_PAST_TIME: 247,
        MAC_TRACKING_OFF: 248,
        MAC_SCAN_IN_PROGRESS: 252,
        MAC_SRC_MATCH_INVALID_INDEX: 255
    },
    capabInfoMask: {
        ALTPANCOORD: 1,
        DEVICETYPE_FFD: 2,
        POWER_AC: 4,
        RCVR_ON_IDLE: 8,
        SECURITY_CAPABLE: 64,
        ALLOC_ADDR: 128
    },
    devStates: {
        HOLD: 0,
        INIT: 1,
        NWK_DISC: 2,
        NWK_JOINING: 3,
        NWK_REJOIN: 4,
        END_DEVICE_UNAUTH: 5,
        END_DEVICE: 6,
        ROUTER: 7,
        COORD_STARTING: 8,
        ZB_COORD: 9,
        NWK_ORPHAN: 10,
        INVALID_REQTYPE: 128,
        DEVICE_NOT_FOUND: 129,
        INVALID_EP: 130,
        NOT_ACTIVE: 131,
        NOT_SUPPORTED: 132,
        TIMEOUT: 133,
        NO_MATCH: 134,
        NO_ENTRY: 136,
        NO_DESCRIPTOR: 137,
        INSUFFICIENT_SPACE: 138,
        NOT_PERMITTED: 139,
        TABLE_FULL: 140,
        NOT_AUTHORIZED: 141,
        BINDING_TABLE_FULL: 142
    },
    logicalChannels: {
        NONE: 0,
        CH11: 11,
        CH12: 12,
        CH13: 13,
        CH14: 14,
        CH15: 15,
        CH16: 16,
        CH17: 17,
        CH18: 18,
        CH19: 19,
        CH20: 20,
        CH21: 21,
        CH22: 22,
        CH23: 23,
        CH24: 24,
        CH25: 25,
        CH26: 26
    },
    channelMask: {
        CH11: 2048,
        CH12: 4096,
        CH13: 8192,
        CH14: 16384,
        CH15: 32768,
        CH16: 65536,
        CH17: 131072,
        CH18: 262144,
        CH19: 524288,
        CH20: 1048576,
        CH21: 2097152,
        CH22: 4194304,
        CH23: 8388608,
        CH24: 16777216,
        CH25: 33554432,
        CH26: 67108864,
        CH_ALL: 134215680
    },
    securityLevel: {
        NONE: 0,
        MIC_32: 1,
        MIC_64: 2,
        MIC_128: 3,
        ENC: 4,
        ENC_MIC_32: 5,
        ENC_MIC_64: 6,
        ENC_MIC_128: 7
    },
    addressMode: {
        ADDR_NOT_PRESENT: 0,
        ADDR_GROUP: 1,
        ADDR_16BIT: 2,
        ADDR_64BIT: 3,
        ADDR_BROADCAST: 15
    },
    scanDuration: {
        CH_CHANGE_REQ: 254,
        CH_MASK_CHANGE_REQ: 255,
        T_NO_BEACONS: 15,
        T_4_MINUTES: 14,
        T_2_MINUTES: 13,
        T_1_MINUTE: 12,
        T_31_SECONDS: 11,
        T_15_SECONDS: 10,
        T_7_5_SECONDS: 9,
        T_4_SECONDS: 8,
        T_2_SECONDS: 7,
        T_1_SECOND: 6,
        T_480_MSEC: 5,
        T_240_MSEC: 4,
        T_120_MSEC: 3,
        T_60_MSEC: 2,
        T_30_MSEC: 1,
        T_15_MSEC: 0
    },
    nvSystemIds: {
        ZSTACK: 1,
    },
    nvItemIds: {
        EXTADDR: 1,
        BOOTCOUNTER: 2,
        STARTUP_OPTION: 3,
        START_DELAY: 4,
        NIB: 33,
        DEVICE_LIST: 34,
        ADDRMGR: 35,
        POLL_RATE: 36,
        QUEUED_POLL_RATE: 37,
        RESPONSE_POLL_RATE: 38,
        REJOIN_POLL_RATE: 39,
        DATA_RETRIES: 40,
        POLL_FAILURE_RETRIES: 41,
        STACK_PROFILE: 42,
        INDIRECT_MSG_TIMEOUT: 43,
        ROUTE_EXPIRY_TIME: 44,
        EXTENDED_PAN_ID: 45,
        BCAST_RETRIES: 46,
        PASSIVE_ACK_TIMEOUT: 47,
        BCAST_DELIVERY_TIME: 48,
        NWK_MODE: 49,
        CONCENTRATOR_ENABLE: 50,
        CONCENTRATOR_DISCOVERY: 51,
        CONCENTRATOR_RADIUS: 52,
        CONCENTRATOR_RC: 54,
        NWK_MGR_MODE: 55,
        SRC_RTG_EXPIRY_TIME: 56,
        ROUTE_DISCOVERY_TIME: 57,
        NWK_ACTIVE_KEY_INFO: 58,
        NWK_ALTERN_KEY_INFO: 59,
        ROUTER_OFF_ASSOC_CLEANUP: 60,
        NWK_LEAVE_REQ_ALLOWED: 61,
        NWK_CHILD_AGE_ENABLE: 62,
        DEVICE_LIST_KA_TIMEOUT: 63,
        BINDING_TABLE: 65,
        GROUP_TABLE: 66,
        APS_FRAME_RETRIES: 67,
        APS_ACK_WAIT_DURATION: 68,
        APS_ACK_WAIT_MULTIPLIER: 69,
        BINDING_TIME: 70,
        APS_USE_EXT_PANID: 71,
        APS_USE_INSECURE_JOIN: 72,
        COMMISSIONED_NWK_ADDR: 73,
        APS_NONMEMBER_RADIUS: 75,
        APS_LINK_KEY_TABLE: 76,
        APS_DUPREJ_TIMEOUT_INC: 77,
        APS_DUPREJ_TIMEOUT_COUNT: 78,
        APS_DUPREJ_TABLE_SIZE: 79,
        DIAGNOSTIC_STATS: 80,
        BDBNODEISONANETWORK: 85,
        SECURITY_LEVEL: 97,
        PRECFGKEY: 98,
        PRECFGKEYS_ENABLE: 99,
        SECURITY_MODE: 100,
        SECURE_PERMIT_JOIN: 101,
        APS_LINK_KEY_TYPE: 102,
        APS_ALLOW_R19_SECURITY: 103,
        IMPLICIT_CERTIFICATE: 105,
        DEVICE_PRIVATE_KEY: 106,
        CA_PUBLIC_KEY: 107,
        KE_MAX_DEVICES: 108,
        USE_DEFAULT_TCLK: 109,
        RNG_COUNTER: 111,
        RANDOM_SEED: 112,
        TRUSTCENTER_ADDR: 113,
        LEGACY_NWK_SEC_MATERIAL_TABLE_START: 117, // Valid for <= Z-Stack 3.0.x
        EX_NWK_SEC_MATERIAL_TABLE: 7, // Valid for >= Z-Stack 3.x.0
        USERDESC: 129,
        NWKKEY: 130,
        PANID: 131,
        CHANLIST: 132,
        LEAVE_CTRL: 133,
        SCAN_DURATION: 134,
        LOGICAL_TYPE: 135,
        NWKMGR_MIN_TX: 136,
        NWKMGR_ADDR: 137,
        ZDO_DIRECT_CB: 143,
        SCENE_TABLE: 145,
        MIN_FREE_NWK_ADDR: 146,
        MAX_FREE_NWK_ADDR: 147,
        MIN_FREE_GRP_ID: 148,
        MAX_FREE_GRP_ID: 149,
        MIN_GRP_IDS: 150,
        MAX_GRP_IDS: 151,
        OTA_BLOCK_REQ_DELAY: 152,
        SAPI_ENDPOINT: 161,
        SAS_SHORT_ADDR: 177,
        SAS_EXT_PANID: 178,
        SAS_PANID: 179,
        SAS_CHANNEL_MASK: 180,
        SAS_PROTOCOL_VER: 181,
        SAS_STACK_PROFILE: 182,
        SAS_STARTUP_CTRL: 183,
        SAS_TC_ADDR: 193,
        SAS_TC_MASTER_KEY: 194,
        SAS_NWK_KEY: 195,
        SAS_USE_INSEC_JOIN: 196,
        SAS_PRECFG_LINK_KEY: 197,
        SAS_NWK_KEY_SEQ_NUM: 198,
        SAS_NWK_KEY_TYPE: 199,
        SAS_NWK_MGR_ADDR: 200,
        SAS_CURR_TC_MASTER_KEY: 209,
        SAS_CURR_NWK_KEY: 210,
        SAS_CURR_PRECFG_LINK_KEY: 211,
        LEGACY_TCLK_TABLE_START: 257, // Valid for <= Z-Stack 3.0.x
        LEGACY_TCLK_TABLE_END: 511, // Valid for <= Z-Stack 3.0.x
        EX_TCLK_TABLE: 4, // Valid for >= Z-Stack 3.0.x
        APS_LINK_KEY_DATA_START: 513,
        APS_LINK_KEY_DATA_END: 767,
        DUPLICATE_BINDING_TABLE: 768,
        DUPLICATE_DEVICE_LIST: 769,
        DUPLICATE_DEVICE_LIST_KA_TIMEOUT: 770,
        ZNP_HAS_CONFIGURED_ZSTACK1: 3840,
        ZNP_HAS_CONFIGURED_ZSTACK3: 96,
    }
};

export default COMMON;